<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="杨宁争">
    <title></title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        a {
            text-decoration: none;
            color: #666966;
        }

        a:hover {
            color: #d4491d;
        }

        nav {
            width: 100%;
            height: 50px;
            line-height: 50px;
            background-color: #FCFFFC;
            border: 1px solid lightgray;
        }

        .container {
            width: 1600px;
            margin: 0 auto;
        }

        .nav-list {
            display: flex;
            justify-content: space-between;
        }

        .active a {
            color: #59A4CA;
        }

        .box {
            position: absolute;
            width: 300px;
            height: 200px;
            border: 1px solid lightgray;
            margin-left: -120px;
            margin-top: -1px;
            display: none;
        }

        .box-more {
            width: 100px;
            margin-left: -30px;
            margin-top: -10px;
        }

        .li-list {
            float: left;
            padding-left: 35px;
        }

        .icon2 {
            width: 8px;
            height: 7px;
            display: block;
            background-image: url(1.png);
            background-position: -60px 0;
            position: relative;
            top: -27px;
            left: 40px;
        }

        .icon1 {
            display: block;
            width: 20px;
            height: 20px;
            position: absolute;
            top: -11px;
            left: 125px;
            float: left;
            background-image: url(1.png);
            background-position: -110px 0;
        }

        .icon3 {
            display: block;
            width: 20px;
            height: 20px;
            position: absolute;
            top: -10px;
            left: 40px;
            float: left;
            background-image: url(1.png);
            background-position: -110px 0;
        }

        .list a:hover .icon2 {
            transform: rotate(180deg);
        }
        .active{
            border-bottom: 4px solid aquamarine;
            top: 10px;
        }
    </style>
</head>

<body>
    <nav>
        <div class="container">
            <ul class="nav-list">
                <li class="active"><a href="">首页</a></li>
                <li class="list">
                    <a href="">剧集</a>
                    <div class="box">
                        <ul class="li-list">
                            <span class="icon1"></span>
                            <li><a href="">楚乔传 TV版</a></li>
                            <li><a href="">镇魂街 第一季</a></li>
                            <li><a href="">醉玲珑</a></li>
                            <li><a href="">终极三国2017</a></li>
                        </ul>
                        <ul class="li-list">
                            <li><a href="">春风十里不...</a></li>
                            <li><a href="">我的前半生</a></li>
                            <li><a href="">微微一笑很...</a></li>
                            <li><a href="">龙珠传奇</a></li>
                        </ul>
                    </div>
                </li>
                <li class="list">
                    <a href="">电影</a>
                    <div class="box">
                        <ul class="li-list">
                            <span class="icon1"></span>
                            <li><a href="">速度与激情8</a></li>
                            <li><a href="">战狼</a></li>
                            <li><a href="">逆时营救</a></li>
                            <li><a href="">我的外星女友</a></li>
                        </ul>
                        <ul class="li-list">
                            <li><a href="">人间大炮</a></li>
                            <li><a href="">杀破狼2</a></li>
                            <li><a href="">记忆大师</a></li>
                            <li><a href="">有部电影</a></li>
                        </ul>
                    </div>
                </li>
                <li class="list">
                    <a href="">综艺</a>
                    <div class="box">
                        <ul class="li-list">
                            <span class="icon1"></span>
                            <li><a href="">极限挑战 第...</a></li>
                            <li><a href="">脑洞大开 第...</a></li>
                            <li><a href="">暴走漫画一</a></li>
                            <li><a href="">开心俱乐部...</a></li>
                        </ul>
                        <ul class="li-list">
                            <li><a href="">挑战者联盟...</a></li>
                            <li><a href="">火星情报局</a></li>
                            <li><a href="">日日煮 2017</a></li>
                            <li><a href="">举杯呵呵喝</a></li>
                        </ul>
                    </div>
                </li>
                <li class="list">
                    <a href="">少儿</a>
                    <div class="box">
                        <ul class="li-list">
                            <span class="icon1"></span>
                            <li><a href="">宝狄与好友</a></li>
                            <li><a href="">纳米核心第</a></li>
                            <li><a href="">我的汤姆猫...</a></li>
                            <li><a href="">小玲玩具</a></li>
                        </ul>
                        <ul class="li-list">
                            <li><a href="">小猪佩奇</a></li>
                            <li><a href="">汪汪队立大...</a></li>
                            <li><a href="">会说话的家族</a></li>
                            <li><a href="">棉花糖和云...</a></li>
                        </ul>
                    </div>
                </li>
                <li><a href="">来疯</a></li>
                <li><a href="">直播</a></li>
                <li><a href="">片库</a></li>
                <li><a href="">资讯</a></li>
                <li><a href="">纪实</a></li>
                <li><a href="">公益</a></li>
                <li><a href="">体育</a></li>
                <li><a href="">汽车</a></li>
                <li><a href="">科技</a></li>
                <li><a href="">财经</a></li>
                <li><a href="">娱乐</a></li>
                <li><a href="">文化</a></li>
                <li><a href="">动漫</a></li>
                <li><a href="">搞笑</a></li>
                <li><a href="">旅游</a></li>
                <li><a href="">时尚</a></li>
                <li><a href="">亲子</a></li>
                <li><a href="">教育</a></li>
                <li><a href="">游戏</a></li>
                <li class="list">
                    <a href="">更多<span class="icon2"></span></a>
                    <div class="box box-more">
                        <ul class="li-list">
                            <span class="icon3"></span>
                            <li><a href="">VR</a></li>
                            <li><a href="">生活</a></li>
                            <li><a href="">原创</a></li>
                            <li><a href="">排行</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
        </div>
    </nav>
</body>

</html>
<script>
    var boxs = document.querySelectorAll('.box');
    var lis = document.querySelectorAll('.list');
    var icon1 = document.querySelector('.icon1');
    for (var i = 0; i < lis.length; i++) {
        lis[i].index = i;
        lis[i].onmouseover = function () {
            boxs.index = lis[this.index];
            boxs[this.index].style.display = 'block';
        }
        lis[i].onmouseout = function () {
            boxs[this.index].style.display = 'none';
        }
    }
</script>